<?php 
$show_validator = true;
include TMPL_PATH.'public/header.phtml';
?>
<script type="text/javascript">
  $(document).ready(function() {
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	<?php if($font){ ?>
	$("#font_value").formValidator({empty:true,onshow:"请输入绣字",onfocus:"请输入绣字"}).inputValidator({min:1,max:20,onerror:"最多只能输入20个字节"});
	<?php } ?>
	<?php if($font_1){ ?>
	$("#font_1_value").formValidator({empty:true,onshow:"请输入绣字第一行",onfocus:"请输入绣字第一行"}).inputValidator({min:1,max:20,onerror:"最多只能输入20个字节"});
	<?php } ?>
	<?php if($font_2){ ?>
	$("#font_2_value").formValidator({empty:true,onshow:"请输入绣字第二行。",onfocus:"请输入绣字第二行"}).inputValidator({min:1,max:20,onerror:"最多只能输入20个字节"});
	<?php } ?>
	
  })
</script>
<div class="pad_10">
<div class="common-form">
<form name="myform" action="__SELF__" method="post" id="myform">
<input type="hidden" name="info[id]" value="<?php echo $user['id']?>"/>
<table width="100%" class="table_form contentWrap">
<?php if($font){ ?>
<tr>
<td width="80">绣字</td> 
<td><input type="text" name="font_value" id="font_value" value="<?php echo $font_value;?>" class="input-text"/></td>
</tr>
<?php } ?>
<?php if($font_1){ ?>
<tr>
<td width="80">绣字第一行</td> 
<td><input type="text" name="font_1_value" id="font_1_value" value="<?php echo $font_1_value;?>" class="input-text"/></td>
</tr>
<?php } ?>
<?php if($font_2){ ?>
<tr>
<td>绣字第二行</td> 
<td><input type="text" name="font_2_value" id="font_2_value" value="<?php echo $font_2_value;?>" class="input-text"/></td>
</tr>
<?php } ?>
</table>
	<input type="hidden" value="<?php echo $id;?>" name="item_id" />
   <input value="提交" id="discount_amount_submit" type="submit">
</form>
</div>
</div>
</body>
</html>